using EPiServer.Common.Security;
using EPiServer.Community.ConnectionLink;

namespace EPiAbstractions.Community.ConnectionLink
{
    public class ConnectionLinkHandlerFacade : IConnectionLinkHandlerFacade
    {
        private static ConnectionLinkHandlerFacade _instance;

        public static ConnectionLinkHandlerFacade Instance
        {
            get
            {
                if (_instance == null)
                    _instance = new ConnectionLinkHandlerFacade();

                return _instance;
            }

            set { _instance = value; }
        }

        #region IConnectionLinkHandlerFacade Members

        public virtual UserCollection GetShortestPath(IUser u1, IUser u2)
        {
            return ConnectionLinkHandler.GetShortestPath(u1, u2);
        }

        #endregion
    }
}